<admintpl file="headerEx" />
<title>{:L('ADMIN_MAILER_ACTIVE')}</title>
<link href="__PUBLIC__/js/artDialog/skins/default.css" rel="stylesheet" />
<!--responsive table-->
<link href="__PUBLIC__/TciocEx/css/table-responsive.css" rel="stylesheet" />

<link rel="stylesheet" type="text/css" href="__PUBLIC__/TciocEx/js/ios-switch/switchery.css" />
<style>
	.radio, .checkbox{
		display: inline-block;
	}


</style>

</head>

<!-- Placed js at the end of the document so the pages load faster -->
<body class="sticky-header">
<section>
	<!-- main content start-->
	<div class="full-content" >
		<!--body wrapper start-->
		<div class="wrapper">
			<div class="row">
				<div class="col-sm-12">
					<section class="panel">
						<header class="panel-heading custom-tab turquoise-tab">
							<ul class="nav nav-tabs">
								<!--<li ><a href="{:U('Admin/mailer/index')}" data-toggle="tab"><i class="fa fa-list-ul"></i> {:L('ADMIN_MAILER_INDEX')}</a></li>-->
								<li class="active"><a href="{:U('Admin/mailer/active_post')}" data-toggle="tab"><i class="fa fa-list-ul"></i> {:L('ADMIN_MAILER_ACTIVE')}</a></li>
							</ul>
						</header>

						<div class="panel-body">
							<section class="panel" >
								<form class="form-horizontal js-ajax-form form-horizontal " role="form" method="post" action="{:U('Admin/mailer/active_post')}">

									<section id="no-more-tables">
										<table cellpadding="2" cellspacing="2" width="100%">
											<tbody>
											<tr>
												<td width="100">{:L('EMAIL_ACTIVATION')}</td>
												<td>
													<php>
														$radio1=''; $radio2=' checked';
														if(C('SP_MEMBER_EMAIL_ACTIVE')==1){
														$radio1=' checked';
														$radio2='';
														}
													</php>
													 <div class="form-group">
														 &nbsp; <label class="radio inline" for="lightup_true"> <input type="radio" {$radio1} id="lightup_true" class="radio" name="lightup" value="1" />{:L('OPEN')}</label> &nbsp;
														 <label class="radio inline" for="lightup_false"> <input type="radio" {$radio2} id="lightup_false" class="radio" name="lightup" value="0" />{:L('CLOSE')}</label>
													<!--<div>-->
														<!--&nbsp;关闭 <input type="checkbox" class="js-switch" checked=checked id="lightup" name="lightup" data-switchery="true" style="display: none;"> 开启-->
													<!--</div>-->
												</div>

												</td>
											</tr>
											<tr style="line-height: 50px">
												<td>{:L('EMAIL_SUBJECT')}</td>
												<td><input type="text" class=" form-control" name="options[title]" value="{$options.title}"/></td>
											</tr>
											<tr>
												<td>{:L('EMAIL_TEMPLATE')}</td>
												<td>
													<script type="text/plain" id="content" name="options[template]">{$options.template}</script>
													<span style="color: #ffb752;">{:L('EMAIL_TEMPLATE_HELP_TEXT',array('link'=>'http://#link#','username'=>'#username#'))}</span>
												</td>
											</tr>
											</tbody>
										</table>
									</section>

									<div class="form-group">
										<div class="col-md-12 text-center clearfix" style=" width:auto;padding-left: 25%;padding-top: 20px;">
											<button class="btn btn-primary js-ajax-submit" type="submit">{:L('SAVE')}</button>
											<a href="javascript:history.back(-1);" class="btn btn-default">返回</a>
										</div>
									</div>
								</form>
							</section>
						</div>
					</section>
				</div>
			</div>
		</div>

	</div>
	</div>
	</div>
	<!--body wrapper end-->

	<!--footer section start-->
	<footer>
		<admintpl file="copyright" />
	</footer>
	<!--footer section end-->

	</div>
	<!-- main content end-->
</section>
<script src="__PUBLIC__/TciocEx/js/jquery-1.10.2.min.js"></script>
<script src="__PUBLIC__/js/wind.js"></script>
<script src="__PUBLIC__/js/common.js"></script>
<script src="__PUBLIC__/TciocEx/js/jquery-ui-1.9.2.custom.min.js"></script>
<script src="__PUBLIC__/simpleboot/bootstrap/js/bootstrap.min.js"></script>
<script src="__PUBLIC__/TciocEx/js/jquery-migrate-1.2.1.min.js"></script>
<script src="__PUBLIC__/TciocEx/js/bootstrap.min.js"></script>
<script src="__PUBLIC__/TciocEx/js/modernizr.min.js"></script>
<script src="__PUBLIC__/TciocEx/js/jquery.nicescroll.js"></script>
<script src="__PUBLIC__/js/ajaxForm.js"></script>

<script src="__PUBLIC__/TciocEx/js/ios-switch/switchery.js" ></script>
<script src="__PUBLIC__/TciocEx/js/ios-switch/ios-init.js" ></script>



<script type="text/javascript" src="__PUBLIC__/TciocEx/js/jquery.validate.min.js"></script>
<script src="__PUBLIC__/TciocEx/js/validation-localization/messages_zh.min.js"></script>
<script src="__PUBLIC__/TciocEx/js/scripts.js"></script>
<script src="__PUBLIC__/TciocEx/js/validation-init.js"></script>

<script type="text/javascript">
	//编辑器路径定义
	var editorURL = GV.WEB_ROOT;
</script>
<script type="text/javascript" src="__PUBLIC__/js/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/ueditor/ueditor.all.min.js"></script>
<script type="text/javascript">
	var editorcontent = new baidu.editor.ui.Editor();
	editorcontent.render('content');
</script>
</body>
</html>